package com.java.controller;

import com.java.sevice.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@Api(tags = "提供测试接口")
@RequestMapping(value = "web")
public class TestController {
    @Autowired
    private TestService testService;

    @ApiOperation(value = "提供测试界面", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @GetMapping(value = "/index")
    public Object def() {
        return new ModelAndView("index");
    }

}
